package com.mushuilingfeng.ddd.user.infrastructure.repository;

import com.mushuilingfeng.ddd.framework.repository.IDomainRepository;
import lombok.extern.slf4j.Slf4j;

/**
 * 这里作用示例，mybatis请自行实现
 *
 * @author
 * @date 2024/9/19
 */
@Slf4j
public abstract class BaseMybatisRepository<T> implements IDomainRepository<T> {
    
    @Override
    public void save(T entityOrObjectValue) {
        log.info("BaseMybatisRepository save method do not support");
        saveOrUpdate(entityOrObjectValue);
    }
    
    @Override
    public void update(T entityOrObjectValue) {
        log.info("BaseMybatisRepository update method do not support");
        saveOrUpdate(entityOrObjectValue);
    }
    
}
